<template>
  <view class="uni_data_checkbox_wapper">
    <uni-data-checkbox
      :multiple="multiple"
      :value="value"
      :localdata="localdata"
      @change="onChange"
    ></uni-data-checkbox>
  </view>
</template>

<script>
import { uniDataCheckbox } from "@dcloudio/uni-ui";

export default {
  components: {
    uniDataCheckbox,
  },
  props: {
    value: {
      type: [Array, null],
      default: [],
    },
    localdata: {
      type: [Array, null],
      default: [],
    },
    multiple: {
      type: [Boolean, null],
      default: false,
    },
  },
  data() {
    return {};
  },
  methods: {
    onChange({ detail }) {
      this.$emit("update:value", detail.value);
    },
  },
};
</script>

<style lang="scss" scoped>
.uni_combox_wapper {
  z-index: 1;
}
</style>